package UVA;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.util.Scanner;

/*
 * @Author Josh Lear
 * @Date 4/15/2014
 * @Problem simple io, mechanics
 */
public class UVA_11172 {
    public static void main (String[] args) throws IOException {
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(
                System.out));
        Scanner sc = new Scanner(System.in);
        int cases = sc.nextInt();
        for (int i = 0; i < cases; i++) {
            long a = sc.nextInt();
            long b = sc.nextInt();
            if (a > b) {
                bw.write(">");
            } else if (a < b) {
                bw.write("<");
            } else {
                bw.write("=");
            }

            bw.write("\n");
        }
        sc.close();
        bw.flush();
    }
}
